package com.ruoyi.business.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 合同交货对象 bus_contract_delivery
 * 
 * @author ruoyi
 * @date 2021-09-02
 */
public class BusContractDelivery extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 交货id */
    private Long deliveryId;

    /** 合同id */
    private Long contractId;

    /** 送货单号 */
    @Excel(name = "送货单号",sort = 1)
    private String deliveryNo;

    /** 送货数量 */
    @Excel(name = "送货数量",sort = 2)
    private BigDecimal deliveryQty;

    /** 送货日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "送货日期", width = 30, dateFormat = "yyyy-MM-dd",sort = 3)
    private Date deliveryDate;

    /** 送货人 */
    @Excel(name = "送货人",sort = 4)
    private String deliveryMan;

    /** 验收单号 */
    @Excel(name = "验收单号",sort = 5)
    private String acceptanceNo;

    /** 验收日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "验收日期", width = 30, dateFormat = "yyyy-MM-dd",sort = 6)
    private Date acceptanceDate;

    /** 验收人 */
    @Excel(name = "验收人",sort = 7)
    private String acceptor;

    /** 质保日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "质保日期", width = 30, dateFormat = "yyyy-MM-dd",sort = 8)
    private Date warrantyDate;

    /** 对应发票号 */
    @Excel(name = "对应发票号",sort = 9)
    private String relatedInvoiceNo;

    public void setDeliveryId(Long deliveryId) 
    {
        this.deliveryId = deliveryId;
    }

    public Long getDeliveryId() 
    {
        return deliveryId;
    }
    public void setContractId(Long contractId) 
    {
        this.contractId = contractId;
    }

    public Long getContractId() 
    {
        return contractId;
    }
    public void setDeliveryNo(String deliveryNo) 
    {
        this.deliveryNo = deliveryNo;
    }

    public String getDeliveryNo() 
    {
        return deliveryNo;
    }
    public void setDeliveryQty(BigDecimal deliveryQty) 
    {
        this.deliveryQty = deliveryQty;
    }

    public BigDecimal getDeliveryQty() 
    {
        return deliveryQty;
    }
    public void setDeliveryDate(Date deliveryDate) 
    {
        this.deliveryDate = deliveryDate;
    }

    public Date getDeliveryDate() 
    {
        return deliveryDate;
    }
    public void setDeliveryMan(String deliveryMan) 
    {
        this.deliveryMan = deliveryMan;
    }

    public String getDeliveryMan() 
    {
        return deliveryMan;
    }
    public void setAcceptanceNo(String acceptanceNo) 
    {
        this.acceptanceNo = acceptanceNo;
    }

    public String getAcceptanceNo() 
    {
        return acceptanceNo;
    }
    public void setAcceptanceDate(Date acceptanceDate) 
    {
        this.acceptanceDate = acceptanceDate;
    }

    public Date getAcceptanceDate() 
    {
        return acceptanceDate;
    }
    public void setAcceptor(String acceptor) 
    {
        this.acceptor = acceptor;
    }

    public String getAcceptor() 
    {
        return acceptor;
    }
    public void setWarrantyDate(Date warrantyDate) 
    {
        this.warrantyDate = warrantyDate;
    }

    public Date getWarrantyDate() 
    {
        return warrantyDate;
    }
    public void setRelatedInvoiceNo(String relatedInvoiceNo) 
    {
        this.relatedInvoiceNo = relatedInvoiceNo;
    }

    public String getRelatedInvoiceNo() 
    {
        return relatedInvoiceNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deliveryId", getDeliveryId())
            .append("contractId", getContractId())
            .append("deliveryNo", getDeliveryNo())
            .append("deliveryQty", getDeliveryQty())
            .append("deliveryDate", getDeliveryDate())
            .append("deliveryMan", getDeliveryMan())
            .append("acceptanceNo", getAcceptanceNo())
            .append("acceptanceDate", getAcceptanceDate())
            .append("acceptor", getAcceptor())
            .append("warrantyDate", getWarrantyDate())
            .append("relatedInvoiceNo", getRelatedInvoiceNo())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
